<?php
class UserDao extends BaseDao
{
	public function __construct()
	{
		parent::__construct();
		$this->tg 	= $this->db->getTDG(C('LtConfig')->get('db.table.prefix')."user");
	}
	
	public function addMoney($id,$money)
	{
		$expression	= new LtDbSqlExpression('money+('.$money.')');
		return $this->tg->update($id,array('money'=>$expression));
	}
}